package cn.com.wind.bdg.inmysql.inmysql.utils;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

import cn.com.wind.bdg.inmysql.inmysql.entity.Info;
/**
 * 
 * @ClassName:  InsertDB   
 * @Description:将info插入mysql数据库的操作
 * @author: gaoxiang
 * @date:   2020年8月20日 下午3:07:13
 */
@Repository
public class InsertDB {
	@Autowired 
	private JdbcTemplate db;
	public void Insert(Info info) {
		// TODO Auto-generated method stub
		db.update("INSERT INTO TB_OBJECT_21732 (COMPANY_NAME,REGISTERED_ADDRESS,PLANTING_VARIETIES,PLANTING_DISTRICT,PLANTING_DISTRICT_CODE,REPORT_CODE) values (?,?,?,?,?,?)",info.getCOMPANY_NAME(),info.getREGISTERED_ADDRESS(),info.getPLANTING_VARIETIES(),info.getPLANTING_DISTRICT(),info.getPLANTING_DISTRICT_CODE(),info.getREPORT_CODE());
	}
}
